import React, { Component } from 'react'
import Son1 from './son1'
import Son2 from './son2'

export default class Parent extends Component {
    state = {
        a: {aa:1},
        b: 2
    }
    shouldComponentUpdate (nextProps, nextState) {
        return true
    }
    render() {
        console.log('Parent组件render....');
        return (
            <div>
                我是Parent组件
                <Son1 a={this.state.a}></Son1>
                <Son2 b={this.state.b}></Son2>
            </div>
        )
    }
}